package avicit.bdp.dds.api.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * 上传文件格式
 *
 * @author xugb
 * @date 2022/4/9 11:30
 */
public class PhmDataFormatBean {
    //是否从文件中读取字段名
    private Boolean header;
    //字段所在行数，默认1
    private Integer headerLines;
    //自动识别日期
    private Boolean time;
    //时间格式定义，默认HH:mm:ss.SSS
    private String timeFormat;
    //读取指定字段数
    private Integer readFieldNum;
    //内容界定符  空格、逗号、制表符
    private String regex;
    //是否启用单双引号处理
    private Boolean marked;
    //单引号   0--丢弃；1--包含为文本
    private Integer singleMark;
    //双引号   0--丢弃；1--包含为文本
    private Integer doubleMark;
    //列类型
    private List<TableHeadBean> columnList =new ArrayList<>();



    public Boolean getHeader() {
        return header;
    }

    public void setHeader(Boolean header) {
        this.header = header;
    }

    public Integer getHeaderLines() {
        return headerLines;
    }

    public void setHeaderLines(Integer headerLines) {
        this.headerLines = headerLines;
    }

    public Boolean getTime() {
        return time;
    }

    public void setTime(Boolean time) {
        this.time = time;
    }

    public Integer getReadFieldNum() {
        return readFieldNum;
    }

    public void setReadFieldNum(Integer readFieldNum) {
        this.readFieldNum = readFieldNum;
    }

    public String getRegex() {
        return regex;
    }

    public void setRegex(String regex) {
        this.regex = regex;
    }

    public Integer getSingleMark() {
        return singleMark;
    }

    public void setSingleMark(Integer singleMark) {
        this.singleMark = singleMark;
    }

    public Integer getDoubleMark() {
        return doubleMark;
    }

    public void setDoubleMark(Integer doubleMark) {
        this.doubleMark = doubleMark;
    }

    public List<TableHeadBean> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<TableHeadBean> columnList) {
        this.columnList = columnList;
    }

    public String getTimeFormat() {
        return timeFormat;
    }

    public void setTimeFormat(String timeFormat) {
        this.timeFormat = timeFormat;
    }

    public Boolean getMarked() {
        return marked;
    }

    public void setMarked(Boolean marked) {
        this.marked = marked;
    }
}
